// JORGE FERNANDO GOMEZ
// 1259371
// 189631
// LEC A1
// MARTIN MÜLLER
// D02
// YANG LIU


#ifndef READ_H
#define READ_H 1

/* Maximum line length (including newline). */
#define MAXLEN 256


#include "util.h"

/* Struct to store lines from an input file
 * and each line's type. */
typedef struct {
    char lineString[MAXLEN+1];
} Line;


extern int inputFileLength;


/* FUNCTION PROTOTYPES. */

/* Allocates space with calloc for a Line *. */
Line* initLines ( int size );

/* Returns the stored lines. */
Line* getLines ( void );

/* Reads inputFile stream and stores lines sequentially in Lines. */
int readFile ( Line * Lines, FILE * inputFile );

#endif /* end of include guard: READ_H */
